package com.jxwifi.cloud.quickclean.adapter;

import android.support.annotation.LayoutRes;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.jxwifi.cloud.quickclean.R;
import com.jxwifi.cloud.quickclean.bean.ProductsBena;

public class TKConfirmAdapter extends BaseQuickAdapter<ProductsBena, BaseViewHolder> {

    public TKConfirmAdapter(@LayoutRes int layoutResId) {
        super(layoutResId, null);

    }

    @Override
    protected void convert(BaseViewHolder helper, ProductsBena item) {

        //helper.setText(R.id.img_confirm_items,item.getImgUrl());
        Glide.with(mContext).load(item.getImgUrl()).error(R.mipmap.icon_default_head).into((ImageView) helper.getView(R.id.img_confirm_items));
        helper.addOnClickListener(R.id.img_confirm_items);
    }
}
